﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebChat.Admin
{
    public partial class ChatterCreateSuccess : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string chatterIdString = Request["chatterId"];

            int chatterId;
            if (!Int32.TryParse(chatterIdString, out chatterId))
            {
                Response.Redirect("ChatterCreateFailure.aspx");
            }

            this.HyperLinkChatter.Text = "You can view the chatter here.";
            this.HyperLinkChatter.NavigateUrl = "~/User/Chatter.aspx?chatterId=" + chatterId;
        }
    }
}